﻿using System;

namespace StaffWarsFm.Lib.Data
{
    public class User : IEquatable<User>
    {
        public string DisplayName { get; set; }
        public string UserName { get; set; }

        public User()
        {
        }

        public User(string userName)
            :this(userName, userName)
        {
            
        }

        public User(string userName, string displayName)
        {
            UserName = userName; 
            DisplayName = displayName;
        }

        public bool Equals(User other)
        {
            if (other == null)
                return false;

            return DisplayName == other.DisplayName
                && UserName == other.UserName;
        }
    }
}
